
import request from '../request.js'

const api = {
	index:'/app/income/index',
	currentMontnIncome:'/app/income/current/money-total',
	currentMontnPay: '/app/pay/current-month/pay-total'
}

/* 首页数据
 */
export function payIncomeIndex(id){
	return request({
		url: api.index,
		method: 'GET',
		params: id
	})
}

/* 获取当前这个月的收入
 */
export function currentMonthTotalIncome(param){
	return request({
		url: api.currentMontnIncome,
		method: 'GET',
		params: param
	})
}
/* 获取当前这个月的支出
 */
export function currentMonthTotalPay(param){
	return request({
		url: api.currentMontnPay,
		method: 'GET',
		params: param
	})
}